package com.coding.dao;

import com.coding.pojo.Poem;
import com.coding.pojo.PoemBasic;

import java.util.List;

public interface PoemDao {
    int deleteByPrimaryKey(Integer poem_id);

    int insert(Poem record);

    int insertSelective(Poem record);

    List<PoemBasic> searchByName(String poem_name);
    List<PoemBasic> searchByPoet(String poet_name);
    List<PoemBasic> searchByText(String poem_text);

    Poem selectByPrimaryKey(Integer poem_id);

    PoemBasic selectByText(String poem_text);

    PoemBasic selectBasicById(Integer poem_id);

    List<PoemBasic> queryByMore(String more);

    List<PoemBasic> selectBasicByPlaceId(int poem_place);

    List<PoemBasic> queryAll();

    int updateByPrimaryKeySelective(Poem record);

    int updateByPrimaryKey(Poem record);

    int getNewPoem_id();
}